﻿using System;
using System.Collections.Generic;
using System.Data;
using System.Data.SqlClient;
using System.Linq;
using System.Web;
using System.Web.UI;
using System.Web.UI.WebControls;

namespace BulkSMSapplication.ASP.MenuItems
{
    public partial class ViewPersons : System.Web.UI.Page
    {
        protected void Page_Load(object sender, EventArgs e)
        {

        }

        protected void UpdateFilter(object sender, EventArgs e)
        {

        }

        private void BindGrid()
        {

        }

        protected void Button1_Click(object sender, EventArgs e)
        {
            string FilterExpression = string.Concat(DropDownListPersons.SelectedValue, " LIKE '%{0}%'");
            SqlDataSource.FilterParameters.Clear();
            SqlDataSource.FilterParameters.Add(new ControlParameter(DropDownListPersons.SelectedValue, "TextBoxSearch", "Text"));
            SqlDataSource.FilterExpression = FilterExpression;
        }
    }
}